package com.example.xpvideo.enums;

/**
 * @author : 洪俊新
 * @date : 2021/1/20 17:45
 * @description:
 */
public enum ErrCodeEnum {

    unknown_9999(9999, "未知异常"),

    unknown_20000(20000, "更新失败"),

    unknown_20001(20001, "查询数据为空"),

    unknown_20002(20002, "添加失败"),
    unknown_20003(20003, "删除失败"),
    unknown_10001(10001, "参数校验有问题"),
    unknown_10002(10002, "账号或密码错误"),
    unknown_10003(10003, "请求不匹配,请核对文档"),
    unknown_10004(10004, "用户未登录，请先登录"),
    unknown_10005(10005, "密码错误"),
    unknown_10006(10006, "该账号已存在，请勿重复添加"),
    unknown_10007(10007, "重要参数缺失"),
    unknown_10008(10008, "原密码输入错误"),
    unknown_10009(10009, "新旧密码不能重复"),
    unknown_10010(10010, "该操作用户不存在"),
    unknown_10011(10011, "该菜单不存在"),
    unknown_10012(10012, "该操作用户无此权限"),
    unknown_10013(10013, "用户已禁用"),
    unknown_10014(10014, "置顶时置顶天数不能为空"),
    unknown_10015(10015, "必传选项不可删除或修改"),
    unknown_10016(10016, "不可重复添加相同资质");
    private Integer code;
    private String message;

    ErrCodeEnum(Integer code,
                String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
